package com.lai.gulimall.cart.feign;

import com.lai.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@FeignClient("gulimall-product")
public interface ProductFeignService {


    @RequestMapping("/product/skuinfo/info/{skuId}")
    //@RequiresPermissions("product:skuinfo:info")
    R getSkuInfo(@PathVariable("skuId") Long skuId);


    @GetMapping("/product/skusaleattrvalue/stringList/{skuId}")
    R getSkuSaleAttrValues(@PathVariable("skuId") Long skuId);

    @PostMapping("product/skuinfo/getNewPrice")
    R getNewPrice(@RequestBody List<Long> ids);
}
